// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
  devtools: { enabled: true },
  
  // 应用配置
  app: {
    head: {
      title: '乐在企业官网',
      titleTemplate: '%s - 乐在企业官网',
      meta: [
        { charset: 'utf-8' },
        { name: 'viewport', content: 'width=device-width, initial-scale=1' },
        { name: 'description', content: '专业的数字化解决方案提供商，为企业提供全方位的技术服务支持' },
        { name: 'keywords', content: '企业服务,数字化解决方案,技术咨询,软件开发' },
        { name: 'author', content: '乐在企业' },
        { property: 'og:type', content: 'website' },
        { property: 'og:title', content: '乐在企业官网' },
        { property: 'og:description', content: '专业的数字化解决方案提供商' },
        { property: 'og:image', content: '/og-image.jpg' },
        { name: 'twitter:card', content: 'summary_large_image' },
        { name: 'twitter:title', content: '乐在企业官网' },
        { name: 'twitter:description', content: '专业的数字化解决方案提供商' }
      ],
      link: [
        { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' },
        { rel: 'canonical', href: 'https://your-domain.com' }
      ]
    }
  },

  // CSS 框架
  css: ['~/assets/css/main.scss'],

  // 模块
  modules: [
    '@nuxtjs/tailwindcss',
    '@pinia/nuxt',
    '@vueuse/nuxt',
    '@nuxtjs/google-fonts'
  ],

  // Google Fonts 配置
  googleFonts: {
    families: {
      'Inter': [300, 400, 500, 600, 700],
      'Noto+Sans+SC': [300, 400, 500, 600, 700]
    },
    display: 'swap',
    preload: true
  },


  // 运行时配置
  runtimeConfig: {
    public: {
      siteUrl: 'https://your-domain.com',
      siteName: '乐在企业官网'
    }
  },

  // 构建配置
  build: {
    transpile: []
  },

  // 开发服务器配置
  devServer: {
    port: 3000,
    host: '0.0.0.0'
  },

  // 兼容性配置
  compatibilityDate: '2024-01-01'
})
